﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace PeppeDotNet.SP2010.Html5Fields.Mail
{
    public class Html5MailInputField : SPFieldText
    {
        public Html5MailInputField(SPFieldCollection fields, string fieldName) : base(fields, fieldName) { }
        public Html5MailInputField(SPFieldCollection fields, string typeName, string displayName) : base(fields, typeName, displayName) { }

        public override BaseFieldControl FieldRenderingControl
        {
            get
            {
                return new BaseHtml5InputFieldControl(Html5InputType.Mail) { FieldName = InternalName };
            }
        }
    }
}
